FROM java:8
ADD dockerfile.project.build.finalname.jar app.jar
ENV TZ="Asia/Shanghai" \
    JAVA_OPTS="-Xms128m -Xmx256m -XX:MaxMetaspaceSize=128m"
RUN echo 'java $JAVA_OPTS -jar /app.jar ' > runapp.sh && \
    chmod +x runapp.sh
EXPOSE 80
ENTRYPOINT ["/bin/bash","runapp.sh"]